/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.toto.login;

import java.rmi.RemoteException;
import java.util.List;
import java.util.Set;
import javax.ejb.EJBObject;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;

/**
 *
 * @author Administrator
 */
public interface LoginServicesRemote extends EJBObject
{
  public boolean isRightAccount(String userId, String password) throws RemoteException;
  public void addLoginAccount(String userId, String password) throws RemoteException;
  public void addLoginAccount(String userId, String name, String password) throws RemoteException;
  public void addLoginAccount(String userId, String name, String password, String permession) throws RemoteException;
  public List getAllName() throws RemoteException;
  public void deleteAccount(String userId) throws RemoveException, RemoteException;
  public void deleteAccount2(String userId) throws RemoteException, RemoveException;
  public Set getAllUserId() throws RemoteException;
  public void changePassword(String userId, String newPassword) throws RemoteException;
  public String getUserId(String userId) throws FinderException, RemoteException;
  public String getPassword(String userId) throws RemoteException, FinderException;
  public String getName(String userId) throws RemoteException, FinderException;
  public void changePermission(String userId, String permission) throws FinderException, RemoteException;
  public String getPermission(String userId) throws FinderException, RemoteException;
}
